#include <stdio.h>

int main(int argc, char *argv[])
{
    int a = 5;

    for (int i = 0; i < 5; i++) {
        int num_a;
        num_a++;

        printf("num_a = %d\t", num_a);

        int num_b = 0;
        num_b++;
        printf("num_b = %d\n", num_b);
        
    }

    // 靜態變量初始值爲0
    for (int i = 0; i < 5; i++) {
       static int num_a; 
       num_a++;
       printf("num_a = %d\t", num_a);

       // 靜態變量聲明一次之後就不需要再次聲明
       static int num_b = 0;
       num_b++;
       printf("num_b = %d\n", num_b);

    }

    a += 1;
    return 0;
}
